.class Lcom/waiqin365/lightapp/visit/b/au;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/b/bd;

.field final synthetic b:Lcom/waiqin365/lightapp/visit/b/at;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/b/at;Lcom/waiqin365/lightapp/visit/b/bd;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    iput-object p2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6

    const v5, 0x7f040022

    const v4, 0x7f040021

    const/4 v3, 0x1

    const-string/jumbo v0, "1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "3"

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    :cond_0
    const-string/jumbo v0, "0"

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iput-object v1, v0, Lcom/waiqin365/lightapp/visit/b/at;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/at;->b:Lcom/waiqin365/lightapp/visit/b/ax;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/at;->b:Lcom/waiqin365/lightapp/visit/b/ax;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/at;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/visit/b/ax;->onClick(Lcom/waiqin365/lightapp/visit/b/bd;)V

    :goto_0
    return-void

    :cond_1
    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/at;->a(Lcom/waiqin365/lightapp/visit/b/at;)Landroid/content/Context;

    move-result-object v0

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    if-nez v0, :cond_3

    :cond_2
    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->k:Ljava/lang/String;

    iput-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->l:Ljava/lang/String;

    iput-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->q:Ljava/lang/String;

    iput-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    iput-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iput-object v0, v2, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    :cond_3
    const-string/jumbo v0, "customerInfo"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "visitId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_4

    const-string/jumbo v0, "routeId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->b:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_4
    const-string/jumbo v0, "visitStatus"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "visitor"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->g:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "isFinished"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "visitType"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/at;->a(Lcom/waiqin365/lightapp/visit/b/at;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const/16 v2, 0x66

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/at;->a(Lcom/waiqin365/lightapp/visit/b/at;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v5, v4}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_5
    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/at;->a(Lcom/waiqin365/lightapp/visit/b/at;)Landroid/content/Context;

    move-result-object v0

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "seniorVisitInfo"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/au;->a:Lcom/waiqin365/lightapp/visit/b/bd;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "editable"

    invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "canViewCM"

    invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/at;->a(Lcom/waiqin365/lightapp/visit/b/at;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const/16 v2, 0xd3

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/au;->b:Lcom/waiqin365/lightapp/visit/b/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/at;->a(Lcom/waiqin365/lightapp/visit/b/at;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v5, v4}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto/16 :goto_0
.end method
